


# 459.重复的子字符串

def main(s):
    temp = ''
    for i in range(0,len(s)//2):
        temp = temp + s[i]
        j = i+1
        judge = 0
        while j+i+1<=len(s):
            if s[j:j+i+1] != temp:
                judge = 1
                break
            j = j + 1
        if judge==0 and len(s)==j:
            return True
    return False

if __name__ == "__main__":
    s = input()
    result = main(s)
    print(result)